package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class StepRankingDTO implements Parcelable {

    public int step;

    public int surpassScale;

    public int stepPlan;

    public List<FriendStepDTO> friendsStep;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.step);
        dest.writeInt(this.surpassScale);
        dest.writeInt(this.stepPlan);
        dest.writeTypedList(this.friendsStep);
    }

    public StepRankingDTO() {

    }

    protected StepRankingDTO(Parcel in) {
        this.step = in.readInt();
        this.surpassScale = in.readInt();
        this.stepPlan = in.readInt();
        this.friendsStep = in.createTypedArrayList(FriendStepDTO.CREATOR);
    }

    public static final Creator<StepRankingDTO> CREATOR = new Creator<StepRankingDTO>() {
        public StepRankingDTO createFromParcel(Parcel source) {
            return new StepRankingDTO(source);
        }

        public StepRankingDTO[] newArray(int size) {
            return new StepRankingDTO[size];
        }
    };

    @Override
    public String toString() {
        return "StepRankingDTO{" +
                "step=" + step +
                ", surpassScale='" + surpassScale + '\'' +
                ", stepPlan='" + stepPlan + '\'' +
                ", friendsStep=" + friendsStep +
                '}';
    }

}
